package com.fuze.energy.domain.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author sepc_
 * @date 8/25/2021 16:34
 */
@ApiModel(value = "HWGdate.event_log_tab")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "HWGdate.event_log_tab")
public class EventLog implements Serializable {
    private static final long serialVersionUID = -7530568109514012823L;
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    private Integer id;

    /**
     * 环网柜名称
     */
    @TableField(value = "rmu_name")
    @ApiModelProperty(value = "环网柜名称")
    private String rmuName;

    /**
     * 采集器类型（温湿度：1；臭氧：2）
     */
    @TableField(value = "collector_type")
    @ApiModelProperty(value = "采集器类型（温湿度：1；臭氧：2）")
    private Integer collectorType;

    /**
     * 告警数据值
     */
    @TableField(value = "alarm_data")
    @ApiModelProperty(value = "告警数据值")
    private Double alarmData;

    /**
     * 日期
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "`date`")
    @ApiModelProperty(value = "日期")
    private Date date;


    public static final String COL_ID = "id";

    public static final String COL_RMU_NAME = "rmu_name";

    public static final String COL_COLLECTOR_TYPE = "collector_type";

    public static final String COL_ALARM_DATA = "alarm_data";

    public static final String COL_DATE = "date";
}